﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Home.Master" Inherits="System.Web.Mvc.ViewPage<SDT.Site.ViewModels.ArticleIndexViewModel>" %>

<%@ Import Namespace="SDT.Lib.Paging" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%=Model.Category!=null?Html.Encode(Model.Category.Name) :string.Empty  %>
    &nbsp;Thông tin cập nhật, đầy đủ nhất về thị trường nhà đất, bất động sản tại Việt
    Nam.
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="clear"></div>
<div class="breadcrumbs">
    <a href="/home">Trang chủ</a><span></span><%=Model.Category!=null?Html.Encode(Model.Category.Name) :string.Empty  %>
</div>
<div class="line"></div>
 <% Html.RenderAction("GetTop", "Readers", new { number = 5, skip = 0, catid = Model.Category != null ? Model.Category.ID : SDT.Model.ConfigManager.GetArticle(), title = "Tin mới", order = "ID", orderDir = "desc" }); %>
 <div class="clear"></div>
 <% Html.RenderAction("LastedLeftTop", "Banner", new { posid = 2, menuid = 0, number = 0, width = 691, height = 91, order = "Priority", orderDir = "asc" }); %>
 <div class="clear"></div>
 <%foreach (var item in Model.Categories)
   { %>
   <% Html.RenderAction("GetByCat", "Readers", new { number = 7, skip = 0, catid = item.ID, title = item.Name, order = "ID", orderDir = "desc" }); %>
 <%} %>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContent" runat="server">
    <% Html.RenderAction("LastedRightTop", "Banner", new { posid = 5, menuid = 0, number = 0, width = 280, height = 250, order = "Priority", orderDir = "asc" }); %>
    <% Html.RenderPartial("~/Views/Shared/Common/SendArticle.ascx"); %>
    <% Html.RenderAction("Lasted", "Video", new { catid = 0, number = 3, title = string.Empty }); %>
    <div class="clear">
    </div>
    <% Html.RenderAction("Focus", "Readers", new { number = 5, skip = 0, catid = Model.Category != null ? Model.Category.ID : SDT.Model.ConfigManager.GetArticle(), title = "Bài xem nhiều", order = "nViews", orderDir = "desc" }); %>
    <div class="clear">
    </div>
    <div class="clear">
    </div>
    <% Html.RenderAction("NewestByCat", "Article", new { number = 3, skip = 0, catid = SDT.Model.ConfigManager.GetChuyengiaPhantich(), title = "Chuyên gia phân tích", order = "ID", orderDir = "desc" }); %>
    <div class="clear">
    </div>
    <% Html.RenderAction("NewestByCat", "Article", new { number = 3, skip = 0, catid = SDT.Model.ConfigManager.GetNhacuasao(), title = "Nhà của sao", order = "ID", orderDir = "desc" }); %>
    <div class="clear">
    </div>
    <% Html.RenderAction("NewestByCat", "Article", new { number = 3, skip = 0, catid = SDT.Model.ConfigManager.GetSacmaukientruc(), title = "Sắc màu kiến trúc", order = "ID", orderDir = "desc" }); %>
    <div class="mar_t">
        <% Html.RenderAction("LastedRightCenter", "Banner", new { posid = 6, menuid = 0, number = 0, width = 280, height = 250, order = "Priority", orderDir = "asc" }); %>
    </div>
    <div class="mar_t">
        <% Html.RenderAction("LastedRightBottom", "Banner", new { posid = 7, menuid = 0, number = 0, width = 280, height = 250, order = "Priority", orderDir = "asc" }); %>
    </div>
</asp:Content>
